package en.edu.scau.cmi.zhanzhiyong.carpter05;

public class Example5_5 {
	
	public static void main(String args[]) {
		
		Circle circle = new Circle(10);
		
		System.out.println("circle in main"+circle);
		System.out.println("the radius of circle in main"+circle.getRadius());
		
		Circular circular = new Circular(circle,20);
		System.out.println("circular's bottom: "+circular.bottom);
		System.out.println("circular's bottom's radius: "+ circular.getBottomRadius());
		System.out.println("circular's volme: " + circular.getVolme());
		
		double r = 8888;
		circular.setBottomRadius(r);
		System.out.println("circular's bottom's radius: "+ circular.getBottomRadius());
		System.out.println("circular's volme: " + circular.getVolme());
		
		circle = new Circle(1000);
		System.out.println("circle in main"+circle);
		System.out.println("the radius of circle in main"+circle.getRadius());
		System.out.println("circular's bottom: "+circular.bottom);
		System.out.println("circular's bottom's radius: "+ circular.getBottomRadius());
	}
}
